package com.example.qicao.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.Logger;

public class MainActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
//    初始化LOGGER 框架
    Logger.addLogAdapter(new AndroidLogAdapter());
    //    设置全局未捕获异常处理
    Thread.setDefaultUncaughtExceptionHandler(new ExceptionHander());


    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    Intent intent = new Intent(this , LoginActivity.class);
    startActivity(intent);

  }
}
